
<%@ page import="gdepot.ContactInfo" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'contactInfo.label', default: 'ContactInfo')}" />
		<title><g:message code="default.list.label" args="[entityName]" /></title>
	</head>
	<body>

	<div class="row">
		<div class="container">
			<ol class="breadcrumb">
				<li>ContactInfo List</li>
			</ol>
		</div>
	</div>

	<div class="row">
		<div class="container" style="margin-bottom: -10px;">

			<table width="100%" class="table">
				<tr>
					<g:form class="navbar-form navbar-left" role="search"
							url="[action: 'search', controller: 'accountBank']">

						<td width="20%">
							<g:textField name="fullName" maxlength="20" class="form-control" required="" value=""
										 placeholder="姓名" style="text-align:center"/>
						</td>
						<td width="5%">
							<g:actionSubmit action="search" class="btn btn-default btn-block" value="搜索"/>
						</td>

					</g:form>
					<td width="60%"></td>
					<td width="5%"><g:link class="btn btn-primary btn-block" controller="transactionRecord" action="choseBank">新建</span></g:link></td>
				</tr>
			</table>
		</div>
	</div>

	<div class="role">

		<div class="container">
			<g:if test="${flash.message}">
				<div class="alert alert-warning">
					<a href="#" class="close" data-dismiss="alert">
					&times;
					</a>
					<strong>${flash.message}</strong>
				</div>
			</g:if>
			<table class="table table-striped table-bordered">
			<thead>
					<tr>
					
						<g:sortableColumn property="cellphone" title="${message(code: 'contactInfo.cellphone.label', default: 'Cellphone')}" />
					
						<g:sortableColumn property="createdDate" title="${message(code: 'contactInfo.createdDate.label', default: 'Created Date')}" />
					
						<g:sortableColumn property="email" title="${message(code: 'contactInfo.email.label', default: 'Email')}" />
					
						<g:sortableColumn property="fullName" title="${message(code: 'contactInfo.fullName.label', default: 'Full Name')}" />
					
						<g:sortableColumn property="message" title="${message(code: 'contactInfo.message.label', default: 'Message')}" />
					
						<g:sortableColumn property="modifiedDate" title="${message(code: 'contactInfo.modifiedDate.label', default: 'Modified Date')}" />
					
					</tr>
				</thead>
				<tbody>
				<g:each in="${contactInfoInstanceList}" status="i" var="contactInfoInstance">
					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
					
						<td><g:link action="show" id="${contactInfoInstance.id}">${fieldValue(bean: contactInfoInstance, field: "cellphone")}</g:link></td>
					
						<td><g:formatDate date="${contactInfoInstance.createdDate}" /></td>
					
						<td>${fieldValue(bean: contactInfoInstance, field: "email")}</td>
					
						<td>${fieldValue(bean: contactInfoInstance, field: "fullName")}</td>
					
						<td>${fieldValue(bean: contactInfoInstance, field: "message")}</td>
					
						<td><g:formatDate date="${contactInfoInstance.modifiedDate}" /></td>
					
					</tr>
				</g:each>
				</tbody>
			</table>
			<div class="pagination">
				<g:paginate total="${contactInfoInstanceCount ?: 0}" />
			</div>
			</div>
		</div>
	</body>
</html>
